{include 'public/header.php'}

<div class="form-signin" style="width:600px;margin:0 auto;margin-top:30px;">
	<form method="post" class="form-horizontal" >
		<div class="form-group">
			<label for="inputEmail3" class="col-sm-2 control-label">姓名：</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="register[name]" id="inputEmail3" placeholder="填写姓名">
			</div>
		</div>

		<div class="form-group">
			<label for="inputEmail13" class="col-sm-2 control-label">密码：</label>
			<div class="col-sm-10">
				<input type="password"  class="form-control"  name="register[password]" id="inputEmail13" value="123456" placeholder="输入密码">
			</div>
		</div>

		<div class="form-group">
			<label for="inputEmail14" class="col-sm-2 control-label">确认密码：</label>
			<div class="col-sm-10">
				<input type="password" class="form-control" id="inputEmail14" name="register[repassword]" value="" placeholder="输入密码">
			</div>
		</div>

		<div class="form-group">
			<label for="inputEmail5" class="col-sm-2 control-label">验证码：</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="register[vcode]" id="inputEmail5" placeholder="输入验证码">
				<img id="captcha_img" onclick="click_img(event);" src="/member/vcode/" width="89" height="29">
			</div>
		</div>

		<div class="form-group text-center">
			<button type="submit" class="btn btn-primary">添加</button>
		</div>
	</form>
	{$error}
</div>

<script>
	function click_img(){
        $("#captcha_img").attr('src','/member/vcode/?'+Math.random());
    }
</script>

{include 'public/footer.php'}